package com.gimi.cloud.jimi.merchantZone.consumer.feign;

import com.gimi.cloud.jimi.common.utils.reqhead.Response;
import com.gimi.cloud.jimi.merchantZone.consumer.feign.config.FeignMultipartSupportConfig;
import feign.Headers;
import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.util.MultiValueMap;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.Map;

/**
 * Created by wangwei on 2018/2/1.
 */
@FeignClient(name = "jimi-merchantZone-service",configuration = FeignMultipartSupportConfig.class)
public interface UeditorFeignService {

    @Headers({"Content-Type: mutipart/form-data","Accept: application/json"})
    @RequestMapping(value = "/ueditor/action", method = RequestMethod.POST)
    Response ueditorAction(@RequestParam("params") Map<String,String> params,MultiValueMap mutipartfiles);


}
